﻿using System;
using System.Data.SqlClient;

namespace GNUGo.Net.WebApp {
	public partial class TestUnmanaged : System.Web.UI.Page {
		protected void Page_Load(object sender, EventArgs e) {
			//Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
			//s.Connect("210.155.158.200", 7777);
			//byte[] b = new byte[20000];
			//int i = s.Receive(b);
			//string str = Encoding.ASCII.GetString(b, 0, i);
			//Response.Write(str);

			try {
				string connectionString = "Data Source=sqlb19.webcontrolcenter.com;uid=blueinkadmin;pwd=ryyuym5a;Initial Catalog=BlueInkWeb";
				SqlConnection cn = new SqlConnection(connectionString);
				cn.Open();
				cn.Close();
				Response.Write("Connected Successfully");
			} catch (Exception ex) {
				Response.Write(ex.ToString().Replace("\r\n", "<br />"));
			}
		}
	}
}
